import Vue from 'vue'
import Vuex from 'vuex'
import emp from './modules/emp'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
    token (state) {
      return state.emp.empInfo.token
    },
    id (state) {
      return state.emp.empInfo.id
    },
    userType (state) {
      return state.emp.empInfo.userType
    },
    username (state) {
      return state.emp.empInfo.username
    }
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    emp
  }
})
